package com.mall.dubbo.api;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mall.dubbo.mappers.UmsRoleMenuRelationMapper;
import com.tanhua.model.domain.UmsRoleMenuRelation;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
@DubboService
public class UmsRoleMenuRelationApiImpl implements UmsRoleMenuRelationApi {

    @Autowired
    private UmsRoleMenuRelationMapper umsRoleMenuRelationMapper;

    @Override
    public List<UmsRoleMenuRelation> findByRoleid(List role_id) {
        LambdaQueryWrapper<UmsRoleMenuRelation> lqw = new LambdaQueryWrapper<>();
        lqw.in(UmsRoleMenuRelation::getRoleId,role_id);
        return umsRoleMenuRelationMapper.selectList(lqw);
    }
}
